package file;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
        File file = new File("./demo");
        if (file.exists()) {
            file.delete();
            System.out.println("删除成功");
        }else {
            file.mkdirs();
            System.out.println("目录已创建");
        }

    }
}
